#ifndef IMGPROCESSOR_H
#define IMGPROCESSOR_H

#include <QMainWindow>
#include <QImage>
#include <QLabel>
#include <QMenuBar>
#include <QMenu>
#include <QToolBar>
#include <QString>
#include <QFileDialog>
#include <QFile>
#include <QTextStream>

#include "showwidget.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class ImgProcessor : public QMainWindow
{
    Q_OBJECT

public:
    ImgProcessor(QWidget *parent = nullptr);
    ~ImgProcessor();
    void createActions(); //
    void createMenus();
    void createToolBars();

private:
    Ui::MainWindow *ui;
    QMenu *fileMenu;
    QMenu *zoomMenu;
    QMenu *rotateMenu;
    QMenu *mirroMenu;

    QImage img;
    QString fileName;
    ShowWidget *showWidget;
    QAction *openFileAction;

    void loadFile(QString filename);
protected slots:
    void ShowOpenFile();
};
#endif // IMGPROCESSOR_H
